<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/iconfont.css"/>
		<link rel="stylesheet" type="text/css" href="css/common.css"/>
		<link rel="stylesheet" type="text/css" href="css/viewport2.css"/>
		<link rel="stylesheet" href="css/swiper.min.css" type="text/css" />
		<script src="js/swiper.min.js"></script>
	</head>
	
	
	<body>
		<div class="web">
			<!--头-->
			<header class="clearfix">
				<div class="logo"><img src="img/logo.png" alt="" /></div>
				<div class="selectBar">
					<select name="">
						<option value="">广州市</option>
						<option value="">上海市</option>
						<option value="">北京市</option>	
					</select>
				</div>
				<div class="searchBar">
					<input type="search" name=""  placeholder="请输入商品名称"/>
					<i class="iconfont icon-fangdajing"></i>
				</div>
				
			</header>
			
			<!--主体-->
			<section>
				<!--<div class="banner">
					<img src="img/index-pic1.png" alt="" />
				</div>-->
				<div class="swiper-container">
			<div class="swiper-wrapper">
				<div class="swiper-slide"><img src="img/index-pic1.png" alt="" /></div>
				<div class="swiper-slide"><img src="img/index-pic1.png" alt="" /></div>
				<div class="swiper-slide"><img src="img/index-pic1.png" alt="" /></div>
			</div>
		

		</div>
	<script type="text/javascript">
		new Swiper('.swiper-container', {
			loop: true,
			direction: "horizontal",
			pagination: ".swiper-pagination",
			slideToClickedSlide:"true",
			autoplay:3000,
			speed:300,
			
		});
	</script>
				
				<div class="groupon">
					<div class="grouptitle clearfix">
						<div class="start"><img src="img/index-start.png" alt="" /></div>
						<h3>优惠团购</h3>
						<i class="iconfont icon-you"></i>
						<h5>更多</h5>
					</div>
					<ul class="clearfix">
						<li><a href="detail.html"><img src="img/group-ps1.jpg" alt="" /></a></li>
						<li><a href="detail.html"><img src="img/group-ps2.jpg"/></a></li>
						<li><a href="detail.html"><img src="img/group-ps3.jpg"/></a></li>
						<li><a href="detail.html"><img src="img/group-ps4.jpg"/></a></li>
					</ul>	
				</div>
				
				<!--猜你喜欢-->
				<div class="like">
					<div class="liketitle clearfix">
						<div class="love"><img src="img/icon-like.png" alt="" /></div>
						<h3>猜你喜欢</h3>
						<i class="iconfont icon-you"></i>
						<h5>更多</h5>
					</div>
					<ul>
						<li>
							<div class="food-list">
								<div class="food-img">
									<img src="img/like-sushi.jpg" alt="" />
								</div>
								<div class="food-introduce">
									<div class="dianming clearfix">
									<span class="name">&nbsp;&nbsp;万岁寿司(正佳店)</span>
									<span class="distance">&lt;100m</span>
									</div>
									<p>&nbsp;&nbsp;[100店通用] 双人套餐</p>
									<div class="clearfix">
									<span class="price">&nbsp;&nbsp;&yen;88.00</span>
									<span class="wancheng">已售1000</span>
									</div>
								</div>
								
							</div>
						</li>
						<li>
							<div class="food-list">
								<div class="food-img">
									<img src="img/duck.jpg" alt="" />
								</div>
								<div class="food-introduce">
									<div class="dianming clearfix">
									<span class="name">&nbsp;&nbsp;周黑鸭(正佳店)</span>
									<span class="distance">&lt;100m</span>
									</div>
									<p>&nbsp;&nbsp;[100店通用] 双人套餐</p>
									<div class="clearfix">
									<span class="price">&nbsp;&nbsp;&yen;88.00</span>
									<span class="wancheng">已售1000</span>
									</div>
								</div>
								
							</div>
						</li>
					</ul>
					
					
				</div>
				
			</section>
			<!--尾-->
			<footer>
				<ul>
					<li class="active"><a href="tearmindex.html"><i class="iconfont icon-noun28593cc"></i><p>首页</p></a></li>
					<li><a href="fenlei.html"><i class="iconfont icon-fl"></i><p>分类</p></a></li>
					<li><a href="discover.html"><i class="iconfont icon-zhinanzhen"></i><p>发现</p></a></li>
					<li><a href="our.html"><i class="iconfont icon-ren"></i><p>我的</p></a></li>
				</ul>
				
				
			</footer>
		</div>
		<script >
    document.body.style.height  = window.innerHeight+"px";
	</script>
	<script>
		
		/*动态改变根元素字体大小*/
			function recalc() {
				var clientWidth = document.documentElement.clientWidth;
				if(!clientWidth) return;
				document.documentElement.style.fontSize = 40 * (clientWidth /750) + 'px';
													//字体大小 =   1rem单位表示多少个像素* (设备的宽度/设计图宽度)
			}

			function initRecalc() {
				recalc();
				var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
				if(!document.addEventListener) return;
				window.addEventListener(resizeEvt, recalc, false);
				document.addEventListener('DOMContentLoaded', recalc, false);
			}
			initRecalc();

	</script>
	</body>
</html>
